import request from '@/utils/request'

//分页获取指定组内的设备
export const list2 = (obj) => {
  return request({
    url: '/resource/group​/device/',
    method: 'get',
    params: obj
  })
}

//增加设备分组
export const addObj = (obj) => {
  return request({
    url: '/resource/group/device',
    method: 'post',
    data: obj
  })
}

//删除设备分组
  export const delObj = (obj) => {
    return request({
      url: '/resource/group/device',
      method: 'delete',
      data: obj
    })
  }